<?php
	//$bodydinamiccontent =  file_get_contents('templates/forminscription.tpl');
	//$smarty->assign('bodycontent',$bodydinamiccontent);
	$conn = connectDB();
	$result=selectfiliere();
	$arr=array();
	while ($row = mysql_fetch_array($result)) {
		array_push($arr, $row['nomfiliere']);
	}
	
	
	
	$smarty->assign('selectarray', $arr);
	$arraycategories=array();
	$result=selectAllCategories();
	while ($row = mysql_fetch_array($result)) {
		array_push($arraycategories,$row);
	}
	$smarty->assign('allcategories', $arraycategories);
	
	
	$result=selectanne();
	$arr=array();
	while ($row = mysql_fetch_array($result)) {
		array_push($arr, $row['anne']);
	}
	$smarty->assign('selected', $arr);
	$menu =  file_get_contents('templates/menuadmin.tpl');
	$smarty->assign('menu',$menu);
	$smarty->assign('bodycontent',"Bievenue admin");
?>